package com.meevle.control {
	
	import com.adobe.cairngorm.control.FrontController;
	import com.meevle.commands.*;
	import com.meevle.events.*;
	
	public class StudioController extends FrontController {

		public function StudioController() {
			this.initialize();
		}		
		
		public function initialize():void {
			
			// ADD COMMANDS
			this.addCommand( LoginEvent.EVENT_LOGIN, LoginCommand );
			this.addCommand( LogoutEvent.EVENT_LOGOUT, LogoutCommand );
			this.addCommand( GetUserEvent.EVENT_GET_USER, GetUserCommand );
			this.addCommand( GetSlotsFromSetEvent.EVENT_GET_TRACKS_FROM_PROJECT, GetSlotsFromSetCommand );
			this.addCommand( StartRecordEvent.EVENT_START_RECORD, StartRecordCommand );
			this.addCommand( StopRecordEvent.EVENT_STOP_RECORD, StopRecordCommand );
			this.addCommand( RegistrationEvent.EVENT_REGISTRATION, RegistrationCommand );
			this.addCommand( GetSetListEvent.EVENT_GET_SETLIST, GetSetListCommand );
			this.addCommand( CreateNewSetEvent.EVENT_CREATE_NEW_SET, CreateNewSetCommand );
			this.addCommand( RemoveSlotFromSetEvent.EVENT_REMOVE_SLOT_FROM_SET, RemoveSlotFromSetCommand);
		}
		
	}
}